package com.nuonuo.test.consumer.controller;

import com.nuonuo.test.api.PrintService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author duan
 * @version 1.0
 * @date 2023/3/23 13:50
 */
@RestController
@RequestMapping(value = "/print")
public class PrintController {

    @DubboReference(version = "1.0.0", mock = "force: return 777777")
    private PrintService printService;

    @GetMapping(value = "/printHello")
    public String printHello(String name) {
        return printService.printHello(name);
    }
}
